#ifndef REGISTWIDGET_H
#define REGISTWIDGET_H

#include <QWidget>
#include <QDebug>
#include <QTcpSocket>
#include <QMessageBox>

class LoginWidget;
class TcpSession;

namespace Ui {
class RegistWidget;
}

class  RegistWidget : public QWidget
{
    Q_OBJECT

public:
    explicit RegistWidget(TcpSession* session,LoginWidget* loginWidget, QWidget *parent = nullptr);

private slots:
    void on_pushButton_reg_clicked();
    void on_pushButton_cancel_clicked();
    //通讯
    void on_reg_ret_signal(bool res, const QString & msg="");

private:
    Ui::RegistWidget *ui;
    LoginWidget* loginWidget;
    TcpSession* session;
};

#endif // REGISTWIDGET_H
